import request from '../../service/http.js' // axios的封装 后续添加axios二次封装
import Vue from 'vue'
import qs from 'qs';
Vue.use(qs);

// 余额明细
export function rebate(data) {
  return request({
      url: 'wechat/user/rebate',
      method: 'post',
      data: qs.stringify(data)
  })
}

// 申请提现
export function withdrawal(data) {
  return request({
      url: 'wechat/user/balance',
      method: 'post',
      data: qs.stringify(data)
  })
}

// 分销规则
export function rebatenotice(data) {
  return request({
      url: 'wechat/order/rebatenotice',
      method: 'post',
      data: qs.stringify(data)
  })
}